
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     T h i s   e x a m p l e   r e c e i v e s   t h e   f i l e   l i n e   b y   l i n e 
 
 '     I t   w o r k s   a l s o   w i t h   s h o r t   b u f f e r s 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 F i l e N a m e   =   " F i l e R e c e i v e d . c s v " 
 
 C O M   O p e n   1 3   1 1 5 2 0 0 
 
 G o s u b   R e c e i v e F i l e F r o m C O M 
 
 S t o p 
 
 
 
 L a b e l   R e c e i v e F i l e F r o m C O M 
 
 	 V a r i a b l e   S t r i n g   F i l e N a m e 
 
 	 V a r i a b l e   S t r i n g   S t r 1 
 
 	 ' 
 
 	 C O M   D i s c a r d I n B u f f e r 
 
 	 ' 
 
 	 S t r 1   =   " " 
 
 	 F o r   v 1   =   1   T o   9 e 9 9 
 
 	 	 s 1   =   C O M _ R e c e i v e d 
 
 	 	 I f   s 1   < >   " " 
 
 	 	 	 s 1   =   R e p l a c e ( s 1 ,   " { { { C R L F } } } " ,   C R L F ) 
 
 	 	 	 S t r 1   =   S t r 1   +   s 1 
 
 	 	 	 I f   s 1   =   " { { { F i l e E n d M a r k e r } } } " 
 
 	 	 	 	 S t r 1   =   R e p l a c e ( S t r 1 ,   " { { { F i l e E n d M a r k e r } } } " ,   " " ) 
 
 	 	 	 	 S a v e   D e l e t e F i l e   F i l e N a m e 
 
 	 	 	 	 S a v e   S t r i n g T o F i l e   S t r 1   F i l e N a m e 
 
 	 	 	 	 E x i t 
 
 	 	 	 E n d I f 
 
 	 	 E n d I f 
 
 	 	 W a i t   S e c o n d s   0 . 0 1 
 
 	 N e x t 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   s 1 
 
 